package com.service.infoEntry.service;

import com.service.infoEntry.dto.CommentDto;
import com.service.infoEntry.dto.TransactionCommentDto;
import com.service.infoEntry.entity.CommentInfo;
import com.service.infoEntry.entity.TransactionCommentInfo;
import com.service.infoEntry.vo.TransactionCommentVo;

import java.util.List;

public interface TransactionCommentService {
    /**
     * 添加评论
     * @param transactionCommentDto
     */
    void addComment(TransactionCommentDto transactionCommentDto);

    /**
     * 通过项目id查询该问题下所有的评论
     * @param transactionId
     * @return
     */
    List<TransactionCommentVo> queryAllCommentByTransactionId(String transactionId, String userId);

    /**
     * 删除事务下的评论
     * @param commentId
     * @return
     */
    void deleteCommentByCommentId(String commentId);
}
